import request from '@/utils/request'

/*
 *
 * 注册
 * @param {username ,password} data
 *
 */

export const register = (data) => {
  return request({
    url: '/user/register',
    method: 'POST',
    data
  })
}

export const login = (data) => {
  return request({
    method: 'POST',
    url: '/user/login',
    data
  })
}
